package com.wyg.blog.utils;

public enum UsefulConst {
    ELASTIC_BLOG_INDEX("myblog", "elasticsearch博客索引"),
    SUCCESSFUL_CODE("200", "查询成功!"),
    FAILURE_CODE("201", "查询失败!"),
    ES_TYPE("type", "_doc");

    private String information;
    private String message;

    UsefulConst(String information, String message) {
        this.information = information;
        this.message = message;
    }

    public String getInformation() {
        return information;
    }

    public String getMessage() {
        return message;
    }
}
